A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • Transportation module doesn't work

    Unsolved Troubleshooting
    1
    0 Votes
    1 Posts
    444 Views
    A

    Hi,

    I’m a total beginner to this and have only installed 3 modules previous to this one. When I try to add this new one (MMM-SL-PublicTransport) the magicmirror displays the message ‘Please create a config file.’

    If anyone could help me out I would be very grateful ! Here’s the code including the module above it (MMM-Screencast, which works fine):

    { module: 'MMM-Screencast', position: 'bottom_right', // This position is for a hidden <div /> and not the screencast window config: { position: 'bottomCenter', height: 600, width: 750, } }, { module: 'MMM-SL-PublicTransport', position: 'top_right', header: 'Busses', config: { apikey: 'Ipostedmyapihere', // REQUIRED. stations: [ // REQUIRED at least one entry. // Definition of the stations that you would like to see { stationId: 'Ipostedmystationidhere', // REQUIRED. An id of a station. You need to run the utility // findStation to get the id(s) of the station(s) you want. stationName: 'stationnamehere',// Optional. This is the name of the station. // It's shown in the header if you have set a header on the module // excludeTransportTypes: [], // Optional. This is an array of types of transport that you DONT // want to see. If not present then all transport types are shown. // The types are: 'Bus', 'Train', 'Metro', 'Tram' and 'Ship'. lines: [ // Optional. An array of lines that you want to see departing from // this station. { line: line-id, // The id of the line direction: dir, // Optional. If present only show departures in this direction // for this line. swapDir: false // Optional. If true, change dir 1 to 2 and vice versa. // Shall be used with the "In to town" feature. Note that // if direction is defined, that shall be direction swapped to. } ] }, ], maxDestinationLength: 999, // Optional, will truncate the destination string to the set length. displaycount: 10, // Optional, show this number of departures for each direction. omitDeparturesLeft: false, // Optional, if set to true departures that have left the station // is not shown. showdisturbances: false, // Not implemented yet fade: true, // Optional. Shall the table of departures be faded or not fadePoint: 0.2, // Optional. Fraction from end where to start fading delayThreshhold: 60, // Optional. If a departure is delayed or in advance only // show this // if the delay/advance is greater than this number in // seconds. updateInterval: 5*60*1000, // Optional. Number of milliseconds between calls to // Trafiklab's API. This value shall preferably be larger then 1 min // There are limitations on number of calls per minute and month highUpdateInterval: {}, // Optional if you dont need it don't define it. // If defined use higher frequences for updates, see // "Set what times to update more frequently" below uiUpdateInterval: 1000, // Optional. Number of milliseconds between updates of the // departure list. This value shall preferably be less then 10 sec SSL: false, // Optional. Use https to access the TrafikLab services, // defaults to false since I have experienced problems // accessing this service over https. Have an ongoing // discussion with TrafikLab debug: false, // Optional. Enable some extra output when debugging ignoreSanityCheck: false, // Optional. If set to true config sanity checks are not done. useDisplayTime: false, // Optional. If true use the actual displaytime that is // received via the API instead of the ExpectedDateTime and // TimeTabledDateTime. See the DisplayTime section below. cleanHeader: false, // If set to true the last update time is not shown // in the header showIcon: true // Optional. If true show an icon of the type of transport } }, ] };

    The parts I have changed are apikey, stationId and stationName

    Thanks in advance

  • 6 Votes
    21 Posts
    22k Views
    D

    @hayman Since the app framwork is electron. I really just made a time displayer using javascript. Here is a tutorial on how to do it.
    https://www.youtube.com/watch?v=p8hFNC5GLzo

  • Modules again.....

    Development
    11
    0 Votes
    11 Posts
    4k Views
    idoodlerI

    @sdetweil Actualy JSON requires quotation of the key and of the value (if the value is a string)

    Example of a JSON file:

    { "string": "This is a string", "bool": true, "int", 1, "float": 3.14, "arrayOfStrings": [ "string1", "string2" ], "arrayOfInts": [ 1, 2 ] }

    The same can be used in a Javascript file, but as an object. You can also throw away the quotation of the keys.

  • 0 Votes
    8 Posts
    2k Views
    V

    If you have config file copy config.sample
    Start again copy the sample file to your documents and downloads.
    Remove sample from the configuration file
    Start again
    Remember start with {
    Code
    Ends in },

    It’s not always easy to see what’s wrong as the code you are using could be wrong .

    as l’ve not used this module l cannot say
    Keep trying your get their in the end
    If it go wrong it’s easy to start again.

  • 6 Votes
    7 Posts
    16k Views
    D

    @REDNAVE

    What type of mirror are you using? It’s not a 50/50 as mines is that and it is not as reflective as your one, so is it a 75/20 Pilkington Mirrorview?

    Thanks.